package com.example.lock.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 用户 DB 操作
 * @Author: mingtian
 * @CreateDate: 2020/12/10 14:29
 * @Version: 1.0
 */
public interface UserMapper {
    @Insert("INSERT INTO USERS(NAME, AGE) VALUES(#{name}, #{age})")
    int insert(@Param("name") String name, @Param("age") Integer age);
}